class Position < ActiveRecord::Base
  belongs_to :member

  validates_presence_of :position, :member_id

  def self.getPosition(index)
    case index
      #Exec
      when 0
        "President"
      when 1
        "1st VP (Service)"
      when 2
        "2nd VP (Pledge Trainer)"
      when 3
        "3rd VP (Administration)"
      when 4
        "4th VP (Membership)"
      when 5
        "Leadership"
      when 6
        "Fellowship"
      when 7
        "Fundraising"
      when 8
        "Treasurer"
      when 9
        "Secretary"
      when 10
        "IRC"
      #Appointed
      when 111
        "Sentinel"
      when 112
        "Internet"
      when 113
        "Scouting Liaison"
      when 114
        "Traditions"
      when 115
        "Relay for Life"
      when 116
        "Banquet"
      when 117
        "Barndance"
      when 118
        "Football Concessions"
      when 119
        "Intramurals"
      when 120
        "Pledge Family Olympics"
      when 121
        "Head Project Coordinator"
      when 122
        "Environmental Concerns"
      when 123
        "Miles of Pennies"
      when 124
        "Individual Projects"
      when 125
        "Etc. Coffeehouse"
      when 126
        "UMOC"
      when 127
        "National Service Week"
      when 128
        "Rush Chair/Head Pledge Parent"
      when 129
        "Apothegm"
      when 130
        "Public Relations"
      when 131
        "Historian"
      when 132
        "Good N' Welfare"
      when 134
        "Alumni Secretary"
      when 135
        "Inclusive Communities"
      when 136
        "Boogie Nights"
      when 137
        "National Youth Service Day"
      when 138
        "Appropriations"
      when 139
        "Food Drive"
      #Pledge
      when 337
        "President (Pledge)"
      when 338
        "VP (Pledge)"
      when 339
        "Leadership (Pledge)"
      when 340
        "Fellowship (Pledge)"
      when 341
        "Fundraising (Pledge)"
      when 342
        "Treasurer (Pledge)"
      when 343
        "Secretary (Pledge)"
      when 344
        "Historian (Pledge)"
      when 345
        "T-shirt"
      when 346
        "Skit"
      when 347
        "Good N' Welfare (Pledge)"
      when 348
        "Internet (Pledge)"
    end
  end
end
